﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="WebApplication1.WebForm4" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>UploadImage</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DataList ID="DataList1" runat="server" RepeatColumns="4">
        <ItemTemplate>
            <asp:Panel ID="Panel4" runat="server" BorderColor="#FF9900" 
                BorderStyle="Double">
                <asp:Image ID="Image1" runat="server" Height="150px" 
                    ImageUrl='<%# "/OrderImages/"+Eval("imageUrl") %>' Width="140px" />
                <br />
                <asp:Label ID="Label6" runat="server" Text='<%# Eval("imageUrl") %>'></asp:Label>
            </asp:Panel>
            <br />
        </ItemTemplate>
    </asp:DataList>
    <div>
        <div id="fileUploadarea">
            <asp:FileUpload ID="FileUpload1" runat="server" BackColor="#FF9900" 
                BorderColor="Aqua" BorderStyle="Ridge" Height="27px" Width="243px" />
            <br />
        </div>
        &nbsp;&nbsp;
        <asp:Button ID="ButtonUpload" runat="server" OnClick="ButtonUpload_Click" Text="Upload" />
    </div>
</asp:Content>
